package pl.com.hme.mediaplayer.playlist;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;


public class PlaylistIteratorUtil {

    public static Iterator<String> getPlaylistIterator(File directory){
        ArrayList<String> arrayList = new ArrayList<String>();
        arrayList.addAll(Arrays.asList(directory.list()));
        return arrayList.iterator();
    }

}
